package app.vendorportal.api.data;

import org.hibernate.validator.constraints.NotEmpty;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Bribin
 */
@XmlRootElement(name = "query-sku")
@XmlAccessorType(XmlAccessType.FIELD)
public class QuerySKU {

    @NotEmpty(message = "sku is required")
    @XmlElement(name = "sku")
    private String sku;

    @XmlElement(name = "qty")
    private int qty = 1;

    public QuerySKU() {
    }

    public QuerySKU(String sku, int qty) {
        this.sku = sku;
        this.qty = qty;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public int getQty() {
        return qty;
    }

    public void setQty(int qty) {
        this.qty = qty;
    }

}
